package com.example.nonacademic_education.util.timer;

import com.example.nonacademic_education.constant.Constant;
import com.example.nonacademic_education.dao.DepartmentDao;
import com.example.nonacademic_education.entity.Department;
import org.apache.commons.io.FileUtils;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

import javax.annotation.Resource;
import java.io.File;
import java.util.List;

/**
 * @author xinmiao
 * @description
 * @date 2023/3/26 17:01
 */
public class CodingJob implements Job {
    @Resource
    private DepartmentDao departmentDao;

    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        //System.out.println("更新了数据库");
        //Department department=departmentDao.getOneById(1L);
        //System.out.println(department);
        departmentDao.updateCertificateNoQuartz();
    }
}
